<template>
  <div class="crumbbox">
    <template v-for="(item, index) in navs">
      <a
        href="javascript:;"
        :key="index"
        :style="{ margin: index == 0 ? '0 10px 0 0' : '0 10px' }"
        >{{ item.name }}</a
      >
      <template v-if="index < navs.length - 1">/</template>
    </template>
  </div>
</template>

<script>
export default {
  props: ["navs"],
};
</script>

<style lang="less" scoped>
.crumbbox {
  line-height: 40px;
  a {
    text-decoration: none;
    color: #000;
  }
}
</style>